package org.example.Service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.example.Dao.PermissionDao;
import org.example.Pojo.Permission;
import org.example.Service.PermissionService;
import org.example.Utils.UnionResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class PermissionServiceImpl implements PermissionService {
    @Resource
    PermissionDao permissionDao;
    @Override
    public List<Permission> GetUserPermissions(String uid) {
        QueryWrapper<Permission> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("uid", uid);
        return permissionDao.selectList(queryWrapper);
    }

}
